package com.qf.smsplatform.pojo;


public class TMultipleParams implements CheckNull{

  private Long id;
  private String alias;
  private String params;
  private String description;
  private Long state;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public String getAlias() {
    return alias;
  }

  public void setAlias(String alias) {
    this.alias = alias;
  }


  public String getParams() {
    return params;
  }

  public void setParams(String params) {
    this.params = params;
  }


  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }


  public Long getState() {
    return state;
  }

  public void setState(Long state) {
    this.state = state;
  }

  @Override
  public String toString() {
    return "TMultipleParams{" +
            "id=" + id +
            ", alias='" + alias + '\'' +
            ", params='" + params + '\'' +
            ", description='" + description + '\'' +
            ", state=" + state +
            '}';
  }

  @Override
  public boolean isNull(CheckType type) {
    switch (type){
      case UPDATE:
        return alias.isEmpty()||params.isEmpty()||description.isEmpty()||state==null;
    }
    return false;
  }
}
